<?php
/*************************************************************************

$Id: xtc304sp2.config.php 543 2010-07-15 12:47:10Z dis $

iclear payment system - because secure is simply secure
http://www.iclear.de

Copyright (c) 2001 - 2009 iclear

Released under the GNU General Public License

************************************************************************

All rights reserved.

This program is free software licensed under the GNU General Public License (GPL).

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA

*************************************************************************/

if(!defined('IC_SEC')) {
	die('No external calls allowed!');
}

global $icCore;

if(!defined('DIR_WS_CATALOG')) {
		require_once 'gm/classes/GMLangFileMaster.php';
		global $gmLangFileMaster;
		$gmLangFileMaster = new GMLangFileMaster();

		require_once('system/core/Debugger.inc.php');
		global $coo_debugger;
		$coo_debugger = new Debugger();
		
		require_once('includes/application_top.php');

		
		require_once(DIR_FS_CATALOG.'gm/classes/FileLog.php');
		require_once(DIR_FS_CATALOG.'gm/classes/ErrorHandler.php');
		require_once(DIR_FS_CATALOG.'gm/inc/gm_get_env_info.inc.php');
		require_once(DIR_FS_CATALOG.'system/gngp_layer_init.inc.php');
		
		require_once (DIR_WS_CLASSES.'main.php');
		global $main;
		$main = new main();
}

$lang =& $icCore->getLanguage();
// define XT:C admin backoffice labels
define('IC_LABEL', 'MODULE_PAYMENT_ICLEAR_');

foreach( array('STATUS', 'ID', 'ZONE', 'SORT_ORDER', 'ORDER_STATUS_ID', 'ALLOWED') AS $key) {
	define(IC_LABEL . $key . '_TITLE', $lang->getParam($key . '_TITLE'));
	define(IC_LABEL . $key . '_DESC', $lang->getParam($key . '_DESC'));
}
define(IC_LABEL . 'TEXT_TITLE', $lang->getParam('MODULE_TITLE'));

define('IC_SESSION_NAME', 'XTCsid');
// load wrapper
require_once dirname(__FILE__) . '/' . basename(preg_replace('/.' . $icCore->cloneID() . '/', '', __FILE__), '.config.php') . '.php';

?>
